package com.example.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author： wzz
 * @date： 2021-10-19 15:06
 */

@Slf4j
@Controller
public class PageController {


    /**
     * 去到page.html页面
     * @return
     */
    @RequestMapping("/toPage/{page1}/{page2}")
    public String toPage(@PathVariable String page1,@PathVariable String page2) {
        return "back/"+page1+"/"+page2;
    }

    /**
     * 去到page.html页面
     * @return
     */
    @RequestMapping("/toPage/{page}")
    public String toPageStudy(@PathVariable String page) {
        return "back/"+page;
    }

}
